/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Mariana
 */
public abstract class AbstractList<E> implements Lista<E> {
    
      public AbstractList(){//constructor
	   }

	   public boolean isEmpty(){//si la lista no tiene elementos regresa verdadero
		  return size() == 0;
	   }
	  
    public boolean contains(E value)
  // pre: value is not null
  // post: returns true iff list contains an object equal to value
    {
	return -1 != indexOf(value);
  
        }


}